//
//  Log.h
//
//  Created by 王 嗣宏 on 13-6-29.
//  Copyright (c) 2013年 王 嗣宏. All rights reserved.
//

#ifndef Rooftop_Log_h
#define Rooftop_Log_h

typedef enum {
	LCLOSE = -1,
    LALWAYS,
    LERROR,
    LWARNING,
    LINFO,
    LMASSAGE,
	LALL,
} LOG_LEVEL;

 extern "C" void SetLogLevel(LOG_LEVEL level);

 extern "C" void Log(LOG_LEVEL level, const char * massage, ...);

 extern "C" void LogD(LOG_LEVEL level, int line, const char* func, const char* file, const char * massage, ...);

#define RFLOG(level, msg...) do{LogD(level,__LINE__,__func__,__FILE__, msg);}while(0)

#endif
